import request from '@/utils/request'

// 查询工单模板列表
export function listWorkOrderTemp(query) {
  return request({
    url: '/workorder/workOrderTemp/list',
    method: 'get',
    params: query
  })
}

// 查询工单模板详细
export function getWorkOrderTemp(id) {
  return request({
    url: '/workorder/workOrderTemp/' + id,
    method: 'get'
  })
}

// 新增工单模板
export function addWorkOrderTemp(data) {
  return request({
    url: '/workorder/workOrderTemp',
    method: 'post',
    data: data
  })
}

// 修改工单模板
export function updateWorkOrderTemp(data) {
  return request({
    url: '/workorder/workOrderTemp',
    method: 'put',
    data: data
  })
}

// 删除工单模板
export function delWorkOrderTemp(id) {
  return request({
    url: '/workorder/workOrderTemp/' + id,
    method: 'delete'
  })
}

// 导出工单模板
export function exportWorkOrderTemp(query) {
  return request({
    url: '/workorder/workOrderTemp/export',
    method: 'get',
    params: query
  })
}